]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
theme: Move accessibility-related selectors into _a11y.scss
authornana-4 <hnmaigo@gmail.com>
Sun, 19 Jan 2020 16:41:44 +0000 (01:41 +0900)
committerFlorian Müllner <florian.muellner@gmail.com>
Thu, 13 Feb 2020 19:46:29 +0000 (19:46 +0000)
Since we have several accessibility-related selectors, it makes sense
to collect them in one stylesheet.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/938

data/theme/gnome-shell-sass/_widgets.scss
data/theme/gnome-shell-sass/widgets/_a11y.scss [new file with mode: 0644]
data/theme/gnome-shell-sass/widgets/_corner-ripple.scss
data/theme/gnome-shell-sass/widgets/_misc.scss
data/theme/meson.build

index 48d440f588469ef1dcc7e2e44700ba8e22db124f..5df4ecd6129eb59a4189da525161c4ae703af137 100644 (file)
@@ -40,6 +40,7 @@
 @import 'widgets/app-grid';
 @import 'widgets/dash';
 // A11y / misc
+@import 'widgets/a11y';
 @import 'widgets/misc';
 @import 'widgets/tiled-previews';
 @import 'widgets/keyboard';
diff --git a/data/theme/gnome-shell-sass/widgets/_a11y.scss b/data/theme/gnome-shell-sass/widgets/_a11y.scss
new file mode 100644 (file)
index 0000000..31b5c4b
--- /dev/null
@@ -0,0 +1,24 @@
+// Pointer location
+.ripple-pointer-location {
+  width: $ripple_size;
+  height: $ripple_size;
+  border-radius: $ripple_size * 0.5; // radius equals the size of the box to give us the curve
+  background-color: lighten(transparentize($selected_bg_color, 0.7), 30%);
+  box-shadow: 0 0 2px 2px lighten($selected_bg_color, 20%);
+}
+
+// Pointer accessibility notifications
+.pie-timer {
+  width: 60px;
+  height: 60px;
+  -pie-border-width: 3px;
+  -pie-border-color: $selected_bg_color;
+  -pie-background-color: lighten(transparentize($selected_bg_color, 0.7), 40%);
+}
+
+// Screen zoom/Magnifier
+.magnifier-zoom-region {
+  border: 2px solid $selected_bg_color;
+
+  &.full-screen { border-width: 0; }
+}
index fb022e407fe686ed1056d3a5635aa4acec27d385..9137b67cad2b2e3090cca1690d5fa94d398dccfc 100644 (file)
@@ -13,12 +13,3 @@ $ripple_size: 50px;
   // just a simple change to the border radius position
   &:rtl { border-radius: 0 0 0 $ripple_size + 2px; }
 }
-
-// Pointer location
-.ripple-pointer-location {
-  width: $ripple_size;
-  height: $ripple_size;
-  border-radius: $ripple_size * 0.5; // radius equals the size of the box to give us the curve
-  background-color: lighten(transparentize($selected_bg_color, 0.7), 30%);
-  box-shadow: 0 0 2px 2px lighten($selected_bg_color, 20%);
-}
index fd6613dae938268711d07f1f67f0b30bc80cb481..554a3161231757fe4706c3e3ecc8a5438a14a72a 100644 (file)
@@ -7,21 +7,6 @@
   border: 1px solid $selected_bg_color;
 }
 
-// Pointer accessibility notifications
-.pie-timer {
-  width: 60px;
-  height: 60px;
-  -pie-border-width: 3px;
-  -pie-border-color: $selected_bg_color;
-  -pie-background-color: lighten(transparentize($selected_bg_color, 0.7), 40%);
-}
-
-// Screen zoom/Magnifier
-.magnifier-zoom-region {
-  border: 2px solid $selected_bg_color;
-  &.full-screen { border-width: 0; }
-}
-
 // User icon
 .user-icon {
   background-size: contain;
index 6305b590f93a83b3931b5ce352a1462ef431f4d7..fdcb69fce5aecb76013c3c3df0731781ff1ffbf6 100644 (file)
@@ -6,6 +6,7 @@ theme_sources = files([
   'gnome-shell-sass/_drawing.scss',
   'gnome-shell-sass/_high-contrast-colors.scss',
   'gnome-shell-sass/_widgets.scss',
+  'gnome-shell-sass/widgets/_a11y.scss',
   'gnome-shell-sass/widgets/_app-grid.scss',
   'gnome-shell-sass/widgets/_app-switcher.scss',
   'gnome-shell-sass/widgets/_base.scss',